package com.wutong.engine.anything;

import com.almasb.fxgl.dsl.FXGL;
import javafx.util.Duration;
import org.slf4j.Logger;

/**
 * 对一些常用方法进行二次封装
 *
 * @author 王益凡
 */
public class Anything {

    private static final Logger log = GameLogger.getLogger(Anything.class);

    public static void run(String threadName ,Runnable runnable, Duration duration) {
        log.info("运行额外进程 -> {}", threadName);
        FXGL.run(runnable, duration);
    }
}
